$OpenBSD: patch-Makefile,v 1.2 2015/03/21 21:28:27 naddy Exp $
--- Makefile.orig	Tue Feb 25 21:10:41 2003
+++ Makefile	Sat Mar 21 02:53:07 2015
@@ -1647,6 +1647,7 @@ endian_calc.h: endian ${MAKE_FILE}
 	${Q}echo '' >> endian_calc.h
 	${Q}echo '' >> endian_calc.h
 	${Q}echo '/* what byte order are we? */' >> endian_calc.h
+	${Q}echo '#include <sys/types.h>' >> endian_calc.h
 	-${Q}if [ X"${BYTE_ORDER}" = X ]; then \
 	    if [ -f ${INCDIR}/endian.h ]; then \
 		echo '#include <endian.h>' >> endian_calc.h; \
